Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

global-modules

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-modules

The directory used by npm for globally installed npm modules.

  • 0.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7M
decreased by-58.64%
Maintainers
1
Weekly downloads
 
Created

What is global-modules?

The global-modules npm package provides the location of the globally installed npm packages on the user's system. It is a simple utility that can be used to find out where global npm packages are stored, which can vary depending on the operating system and the configuration of the npm environment.

What are global-modules's main functionalities?

Get the path to global node_modules

This feature allows you to retrieve the path to the directory where global npm packages are installed. The code sample shows how to import the global-modules package and log the path to the console.

const globalModules = require('global-modules');
console.log(globalModules);

Other packages similar to global-modules

Keywords

FAQs

Package last updated on 26 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc